package com.snopy.concurrency.demo_base;

import lombok.extern.slf4j.Slf4j;

/**
 * @author snopy
 * @description:
 * 常见方法之 sleep的使用
 *
 * @classname Test4
 * @date 2020/10/10 10:43
 * @email 77912204@qq.com
 */
@Slf4j(topic = "Test4")
public class Test4 {

    public static void main(String[] args) throws InterruptedException {
        /*Thread thread = new Thread(() -> {
            try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }, "t1");
        thread.start();
        log.info("thread state:{}",thread.getState());
        Thread.sleep(1000);
        log.info("thread state:{}",thread.getState());*/
    }

}
